import { StorageSerializers, useStorage } from "@usehook"

export const getObjectStorage = (key, defaults) => {
    return useStorage(key, defaults, localStorage, { serializer: StorageSerializers.object, mergeDefaults: true })
}

export const getStorage = (key, defaults) => {
    return useStorage(key, defaults, localStorage)
}